﻿using System;
using System.ComponentModel.Composition;
using System.Windows.Forms;
using PefStudio.Base;
using PefStudio.StartUp;

namespace PefStudio.Windows
{
    class AbstractCommand : ICommand
    {
        [Import(Bootstrapper.MainWindowContract, typeof(Form))]
        private Lazy<MainWindow> mainWindow { get; set; }
        protected MainWindow MainWindow
        {
            get { return mainWindow.Value; }
        }

        public virtual void Run(params object[] args)
        {
        }
    }
}
